package com.tian.mapper;

import com.tian.dto.ActivityCouponReqDto;
import com.tian.entity.ActivityCoupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityCouponMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ActivityCoupon record);

    ActivityCoupon selectByPrimaryKey(Integer id);

    List<ActivityCoupon> selectAll();

    ActivityCoupon selectByActivityCoupon(@Param("couponId") Integer couponId, @Param("activityId") Integer activityId);

    List<ActivityCoupon> list(ActivityCouponReqDto activityCouponReqDto);

    int count(ActivityCouponReqDto activityCouponReqDto);

    int updateByPrimaryKey(ActivityCoupon record);
}